import request from '../request'
import globalConfig from "../config";
import {praseStrEmpty} from '@/common/utils'

// 获取用户菜单
export function nav(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.sysMenu.menuNav}`,
        method: 'get',
        params: data
    })
}

export function menuList(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.sysMenu.menuList}`,
        method: 'get',
        params: data
    })
}
export function menuAdd(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.sysMenu.menuAdd}`,
        method: 'post',
        params: data
    })
}
export function menuUpdate(data) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.sysMenu.menuUpdate}`,
        method: 'post',
        params: data
    })
}



